Previous Book Contents Book Index Next

Inside Macintosh: 3D Graphics Programming With QuickDraw 3D /
Chapter 14 - Shader Objects / Shader Objects Reference
Shader Objects Routines / Managing Shader Characteristics


Q3Shader_SetUVTransform

You can use the Q3Shader_SetUVTransform function to set the transform in uv parametric space.

TQ3Status Q3Shader_SetUVTransform (
TQ3ShaderObject shader, 
const TQ3Matrix3x3 *uvTransform);
shader
A shader.
uvTransform
A pointer to the desired transform in uv parametric space.
DESCRIPTION
The Q3Shader_SetUVTransform function sets the transform in uv parametric space for the shader specified by the shader parameter to the transform specified by the uvTransform parameter. For example, a texture shader that relies on uv values to index a texture mapping can rotate, scale, or translate the texture by setting appropriate values in the uv transform.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 JUL 1996